import Layout from '../components/Layout'

let routes = [
    {
        // 父类
        path: '/',
        component: Layout,
        title: "默认首页",
        children: [
            {
                path: 'home',
                title: "首页",
                component: () => import('../components/Views/Home')
            },
            {
                path: 'user',
                title: "没啥用科技账号",
                component: () => import('../components/Views/User')
            }, 
            {
                path: 'lisa',
                title: "没啥用科技账户",
                component: () => import('../components/Views/Lisa')
            },
            {
                path: 'top',
                title: "没啥用科技top",
                component: () => import('../components/Views/red6'),
            },
        ]
    },
    {
        // 父类
        path: '/system',
        title: "系统管理",
        component: Layout,
        children: [
            {
                path: 'user',
                title: '用户管理',
                component: () => import('../components/Views/Users'),
                children: [
                    {
                        path:'profile',
                        title:'用户信息',
                        component:()=>import('../components/Views/UserInfo'),
                    },
                    {
                        path: 'avatar',
                        title: '头像上传',
                        component: () => import('../components/Views/red3'),
                    },
                    {
                        path: 'fans',
                        title: '粉丝管理',
                        component: () => import('../components/Views/Fans'),
                        children: [
                            {
                                path: 'bigfans',
                                title: '头牌粉丝',
                                component: () => import('../components/Views/red4'),
                            },
                            {
                                path: 'onefans',
                                title: '一号粉丝',
                                component: () => import('../components/Views/red5'),
                            },
                            {
                                path: 'twofans',
                                title: '二号粉丝',
                                component: () => import('../components/Views/red6'),
                            },
                            {
                                path: 'threefans',
                                title: '三号粉丝',
                                component: () => import('../components/Views/404'),
                            },
                        ]
                    },
                ]
            },
            {
                path:'role',
                title:'角色管理',
                component:()=>import('../components/Views/Role'),
            },
            {
                path: 'permission',
                title: '权限管理',
                component: () => import('../components/Views/Permission'),
            }
        ]
    },
    {
        // 父类
        path: '/commodity',
        title: "没啥用管理",
        component:Layout,
        children: [
            {
                path: "product",
                title: "产品管理", 
                component: () => import('../components/Views/404'),
            },
            {
                path: "category",
                title: "品类管理",
                component: () => import('../components/Views/404'),
            },
            {
                path: "activity",
                title: "没啥用活动",
                component: () => import('../views/ndex'),
            },
        ]
    },

]

export default routes